package ws.jdbc.concurrent.driver.sqlserver.tds.datastreamtypes

/**
 * Test of B_VARCHAR class methods.
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
class B_VARCHARTest extends GroovyTestCase {
	void testGetBytes() {
    println "testGetBytes()"

    ([3, 0x61, 0x0, 0x62, 0x0, 0x63, 0x0] as Byte[]).eachWithIndex() {it1, idx1 ->
      println "$it1"
      assertEquals it1, new B_VARCHAR("abc").getBytes()[idx1]
    }
  }
}

